//
//  SecureFieldView.swift
//  SwiftUI-CTao
//
//  Created by 涛 on 2019/9/17.
//  Copyright © 2019 涛. All rights reserved.
//

import SwiftUI

struct SecureFieldView: View {
    
    @State private var password: String = ""

    var body: some View {
        VStack {
            SecureField("输入你的密码", text: $password)
        
            Text("你的密码是\(password)")
        }
        .padding()
    }
}

struct SecureFieldView_Previews: PreviewProvider {
    static var previews: some View {
        SecureFieldView()
    }
}
